package com.project.erp.common;

public class Constants {

	//当前用户Session存放的Key
	public static final String ERP_CURRENT_USER = "erpCurrentUser";
	
	//当前用户cookie用户名密码信息
	public static final String ERP_COOKIE_CURRENT_KEY = "cookieCurrentKey";
	
	//加密cookie时的网站自定码
    public static final String WEB_COOKIE_KEY = "erpApp";
	
    //加密cookie字段分隔符
    public static final String WEB_COOKIE_SPLIT = ";;";
	
	//当前用户保存在cookie的时间
	public static final int ERP_COOKIE_MAX_AGE = 5 * 24 * 3600;
	
	//当前用户用户权限码信息
	public static final String ERP_CURRENT_USER_RIGHTCODES = "erpCurrentUserRightCodes";
	
	//验证码
	public static final String RAND_CHECK_CODE = "randCheckCode";
	
	//权限:菜单类型
	public static final String PRIVILEGE_TYPE_MENU = "1";
	
	//权限:功能类型
	public static final String PRIVILEGE_TYPE_FUNCTION = "2";
	
	//权限:资源类型
	public static final String PRIVILEGE_TYPE_RESOURCE = "3";
	
	//扩展URL分隔符
	public static final String PRIVILEGE_EXTERNAL_SPLIT = ";";
	
	//系统所有参数在程序中的键标识 
	public static final String PARAMS_MAP = "PARAMS_MAP";
	
	//系统编号生成规则前缀
	public static final String SERIALNUM_PREFIX = "serialnum_prefix";
	//客户合同编号生成规则前缀
	public static final String CUSCONTRACT_SERIALNUM_PREFIX = "cuscontract_serialnum_prefix";
}
